package com.celtic.service.impl;

import java.util.List;

import org.appfuse.service.impl.GenericManagerImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.celtic.dao.ProjectDao;
import com.celtic.model.Project;
import com.celtic.service.ProjectManager;

@Service
public class ProjectManagerImpl  extends GenericManagerImpl<Project, Long> implements ProjectManager {

	  
	ProjectDao projectDao;
	

	@Autowired
	public ProjectManagerImpl(ProjectDao projectDao) {
		super(projectDao);
		this.projectDao = projectDao;
	}

	
	
	@Override
	public List<Project> findByProjectName(String name) {
		log.fatal("Name======================>"+name);
		List<Project> projects = projectDao.findByProjectName(name);
		return projects;
	}
	
	@Override
	public List<Project> getAllDistinct(){
		List<Project> projects = projectDao.getAllDistinct();
		return projects;
	}


}
 	